<?php
header("Content-Type: text/html;charset=utf-8");

include('Includes/DB.inc.php');
include('Includes/AC.inc.php');

$dbh = db::connect();
//print_r(ac::getUserPurview('1', $dbh, DBTP));//获取用户权限数组

//print_r(ac::getUserMenuSort('1', $dbh, DBTP));//获取用户菜单排序数组

//print_r(ac::buildMenu());//获取所有菜单


print_r(ac::buildUserMenu('1', $dbh, DBTP));//获取用户菜单（过滤排序过）





//print_r(ac::buildAppList());//获取所有APP资源
